﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RecorderData
{
    public class DataReceiver
    {
        private static DataReceiver instance;
        private List<Recorder> recorderList;

        private DataReceiver()
        {
            AddRecorders();
        }

        public static DataReceiver Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new DataReceiver();
                }
                return instance;
            }
        }

        public void AddRecorders()
        {
            recorderList = new List<Recorder>();
            Analog[] analog1 = {new Analog(false), new Analog(false), new Analog(false)};
            Analog[] analog2 = { new Analog(false), new Analog(true), new Analog(false) };
            recorderList.Add(new Recorder(analog1,"Nederland",new DateTime(1993,05,27),8));
            recorderList.Add(new Recorder(analog1, "Duitsland", new DateTime(2014, 09, 27), 1));
            recorderList.Add(new Recorder(analog1, "Nederland", new DateTime(2014, 08 , 10), 0));
            recorderList.Add(new Recorder(analog1, "Niger", new DateTime(2001, 06, 01), 0));
            recorderList.Add(new Recorder(analog2, "Nederland", new DateTime(2012, 12, 21), 0));
            recorderList.Add(new Recorder(analog1, "Nederland", new DateTime(2013, 04, 01), 3));
        }



    }
}
